package com.mopeso;

import android.app.Application;
import android.support.multidex.MultiDex;

//import com.alghu.algdemo.utils.Untils;
import com.cash.lemoloan.aflib.AfApplication;
import com.cash.lemoloan.jsbridge.JsBridgeApplication;
import com.cash.lemoloan.statisticlib.StatisticApplication;
import com.cash.lemoloan.statisticlib.StatisticContant;

import com.cash.lemoloan.statisticlib.Utils.PreferencesUtil;

import com.mopeso.Utils.AdjustUtil;

public class MyApplication extends Application {
    private static Application application;
    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
        MultiDex.install(application);
        JsBridgeApplication.init(this);
        StatisticApplication.init(this);
        AfApplication.init(this);
        AdjustUtil.init(application);
        StatisticContant.latitude = PreferencesUtil.getString(StatisticContant.LATITUDE_FLAG);
        StatisticContant.longitude = PreferencesUtil.getString(StatisticContant.LONGITUDE_FLAG);
//        Untils.loadJNISo();
    }
    public static Application getApplication(){
        return application;
    }
}
